package com.erp.erp_project.service;

import com.erp.erp_project.core.exception.CustomException;
import com.erp.erp_project.model.Role;
import com.erp.erp_project.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yh
 */
public interface RoleService extends BaseServcie<Role>{
    Role query(Integer roleId);
    void updatarole(Role role) throws CustomException;
    void updatarp(String ids, Integer roleId);
    void add(User user);
    void updataur(User user);
    void addrole(String ids,Role role) throws CustomException;
    void delete(List ids) throws CustomException;
    List<Role> relist(Role role, String rolefield, String condition);
}
